package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.entity.SysBusinessInfo;
import com.project.entity.SysStore;
import com.project.entity.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/*
 * @Author(作者) 王崇人
 * @Description(接口的描述): 商铺用户持久层接口
 *：@version（开发的版本）：1.0
 * @Date(创建时间)：2021-10-08
 */
@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {

    public void addStore(@Param("sysUser") SysUser sysUser, @Param("sysBusinessInfo") SysBusinessInfo sysBusinessInfo);

    public SysUser findById(@Param("userId") Integer userId);

    public void add(@Param("sysStore") SysStore sysStore, @Param("userId") int userId);

    public void addPrincipal(@Param("pName") String pName,
                             @Param("pNum") String pNum,
                             @Param("storeId") int storeId);
}
